package org.example.base.common.entity;

import org.example.core.annotation.Field;
import org.example.core.annotation.Table;
import org.example.core.entity.SimpleEntity;

/**
 * Description:
 * Date: 2024/1/12 23:28
 */
@Table(value = "t_menu", orderBy = "update_time desc")
public class TMenuEntity extends SimpleEntity {
    /**
     * 菜单名称
     */
    private String name;
    /**
     * 菜单路径
     */
    private String url;

    @Field(alias = "component_url")
    private String componentUrl;

    private int ord;

    @Field(alias = "parent_id")
    private String parentId;

    private String icon;

    public String getComponentUrl() {
        return componentUrl;
    }

    public void setComponentUrl(String componentUrl) {
        this.componentUrl = componentUrl;
    }

    public int getOrd() {
        return ord;
    }

    public void setOrd(int ord) {
        this.ord = ord;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
